# import unittest
import unittest
# from tools import add
from tools import add
# from parameterized import parameterized
from parameterized import parameterized

# data = [(1, 1, 3), (1, 2, 3), (2, 3, 5), (4, 5, 9)]
data = [(1, 1, 2), (2, 3, 5), (3, 4, 7), (4, 5, 9)]


#
# class TestAdd(unittest.TestCase):
#     @parameterized.expand(data)
#     def test_add(self, a, b, expect):
#         print(f'a:{a}, b:{b}, expect：{expect}')
#         self.assertEqual(expect, add(a, b))
class TestAdd(unittest.TestCase):

    @parameterized.expand(data)
    def test_add(self, a, b, expect):
        print(f'a:{a}, b:{b}, expect:{expect}')
        self.assertEqual(expect, add(a, b))


# if __name__ == '__main__':
#     unittest.main()


if __name__ == '__main__':
    unittest.main()
